package com.yenlien.traceyun.control.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @Date 2023/10/30
 * @Author jiaLong
 * @Descript 果园CMS 召回管理
 */
@Entity
@Table(name = "t_fruit_recall")
public class FruitRecall extends BaseEntity {

    @ApiModelProperty(value = "产品名称", example = "瑞阳")
    private String productName;

    @ApiModelProperty(value = "召回范围", example = "一号果园")
    @Column(name = "`range`")
    private String range;

    @ApiModelProperty(value = "召回批次", example = "202311071123049632")
    private String batch;

    @ApiModelProperty(value = "召回时间", example = "2023-10-10 10:10:10")
    private String time;

    @ApiModelProperty(value = "企业名", example = "乾富祥")
    private String companyName;

    @ApiModelProperty(value = "产品图片, 多个使用 ; 分割", example = "A.png")
    private String prodImg;

    @ApiModelProperty(value = "召回原因, 富文本", example = "<p>召回</p>")
    @Column(columnDefinition = "longtext")
    private String reason;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "企业ID")
    private String companyId;



    @Transient
    private String pageType;
    @Transient
    private Integer pageNum;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public String getPageType() {
        return pageType;
    }

    public void setPageType(String pageType) {
        this.pageType = pageType;
    }



    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public FruitRecall() {
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getRange() {
        return range;
    }

    public void setRange(String range) {
        this.range = range;
    }

    public String getBatch() {
        return batch;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getProdImg() {
        return prodImg;
    }

    public void setProdImg(String prodImg) {
        this.prodImg = prodImg;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
